package gui;

import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.SWT;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewHersteller extends org.eclipse.swt.widgets.Dialog {
	private Shell dialogShell;
	private Text txt_hersteller_Strasse;

	/**
	* Auto-generated main method to display this 
	* org.eclipse.swt.widgets.Dialog inside a new Shell.
	*/
	public static void main(String[] args) {
		try {
			Display display = Display.getDefault();
			Shell shell = new Shell(display);
			NewHersteller inst = new NewHersteller(shell, SWT.NULL);
			inst.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public NewHersteller(Shell parent, int style) {
		super(parent, style);
	}

	public void open() {
		try {
			{
				dialogShell.setSize(414, 165); // hier knallts
			}
			{
				txt_hersteller_Strasse = new Text(dialogShell, SWT.NONE);
				GridData txt_hersteller_StrasseLData = new GridData();
				txt_hersteller_StrasseLData.horizontalSpan = 3;
				txt_hersteller_StrasseLData.widthHint = 266;
				txt_hersteller_StrasseLData.heightHint = 15;
				txt_hersteller_Strasse.setLayoutData(txt_hersteller_StrasseLData);
				txt_hersteller_Strasse.setText("text1");
			}
			Shell parent = getParent();

			dialogShell.setLocation(getParent().toDisplay(100, 100));
			Display display = dialogShell.getDisplay();
			while (!dialogShell.isDisposed()) {
				if (!display.readAndDispatch())
					display.sleep();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
